import request from '@/utils/request';
// import { rsaEncrypt } from '@/utils/commonutils3'

// 获取品类销售额占比
export function getCategorySellList(data) {
	return request({
		url: '/store/getSalesProportion',
		method: 'get'
	});
}
// 登录
export function login(data) {
	return request({
		url: '/login',
		method: 'post',
		data
	});
}

// 获取通证涨幅
export function getTokenInfo(data) {
	return request({
		url: '/store/getScreenToken',
		method: 'get'
	});
}

// 获取热销商品排行
export function getStoreBestSellers(data) {
	return request({
		url: '/store/getStoreBestSellers',
		method: 'get'
	});
}

// 获取收银推送信息
export function getScreenData(data) {
	return request({
		url: '/store/getStoreRealTime',
		method: 'get'
	});
}

// 获取店铺交易金额
export function getStoreUSDMillions(data) {
	return request({
		url: '/store/getStoreUSDMillions',
		method: 'get',
		data
	});
}
// 获取通证涨幅
export function getScreenToken(data) {
	return request({
		url: '/store/getScreenToken',
		method: 'get',
		data
	});
}
// 获取用户名
export function getUserSid(data) {
	return request({
		url: '/store/getUserName',
		method: 'get',
		data
	});
}

// 获取token信息、订单信息
export function getTokenInfoAndOrderInfo() {
	return request({
		url: '/store/getStoreBasic',
		method: 'get'
	});
}
